/*
 *  Author: Lifelover
 *	Edit: brunql
 *  License: WTFPL
 */

#ifndef __config_h__
#define __config_h__

#define F_CPU		8000000

#define ENC_DDR		DDRB
#define ENC_PORT	PORTB
#define ENC_SEL		PB4
#define ENC_DI		PB6
#define ENC_DO		PB5
#define ENC_SCK		PB7

#define MAC0		0x12
#define MAC1		0x34
#define MAC2		0x56
#define MAC3		0x78
#define MAC4		0x9a
#define MAC5		0xbc

#define IP0			192
#define IP1			168
#define IP2			1
#define IP3			100

#define TCP_PORT	80

#define RX_END		0x17ff
#define TX_START	0x1800
#define TX_BASE		(TX_START+1)

#define PBUF_SZ		64
#define IP_TTLVALUE	128

#define HTTP_SERV	"ATtiny2313"

#define LED_DDR		DDRD
#define LED_PORT	PORTD
#define LED_PIN		PIND
#define LED_BIT		6

// DS18B20 connection
#define	DS18B20_PORT	DDRD
#define	DS18B20_PIN		PIND
#define	DS18B20_BIT		2

#endif // __config_h__
